package com.qianxx.component.activity.switcher.slide;

import android.os.Bundle;
import android.widget.Toast;

import com.qianxx.component.R;
import com.qianxx.component.activity.base.BaseActivity;
import com.qianxx.viewlibrary.switcher.slide.OnSlideViewListener;
import com.qianxx.viewlibrary.switcher.slide.SlideView;

import butterknife.BindView;
import butterknife.ButterKnife;

public class SlideActivity extends BaseActivity {

    @BindView(R.id.slide_view)
    SlideView slideView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_slide);
        ButterKnife.bind(this);

        slideView.setSlideViewListener(new OnSlideViewListener() {
            @Override
            public void onState(boolean isClose) {
                Toast.makeText(getApplicationContext(), isClose + "", Toast.LENGTH_SHORT).show();
            }
        });

    }

    @Override
    public String setTitle() {
        return "Slide";
    }
}
